#include "testlog4.h"
#include <QtWidgets/QApplication>
#include <qdebug.h>

#include "log4qt/logmanager.h"
#include "log4qt/logger.h"
#include "log4qt/propertyconfigurator.h"

#pragma comment(lib,"../bin/x64/Debug/log4qt_d.lib")

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    Log4Qt::PropertyConfigurator::configure(QCoreApplication::applicationDirPath() + "/log4qt.conf");
    Log4Qt::LogManager::setHandleQtMessages(true);
    auto logger = Log4Qt::Logger::logger(QLatin1String("mylogger"));
    logger->info("hello log4qt");
    qDebug() << "haha";
    testlog4 w;
    w.show();
    return a.exec();
}
